#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import time

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

DATABASE = {
    'engine': 'file_storage',
    'name': 'accounts',
    'path': os.path.join(BASE_DIR, 'db')
}

current_time = time.strftime('%Y-%m-%d %X', time.localtime())
# 日志配置信息
LOG = {
    'engine': 'file',
    'path': os.path.join(BASE_DIR, 'logs'),
    'name': '%s.log',
    'format': 'user: %s, time: ' + current_time + ', message: %s'
}
